import request from '@/utils/request'

// 查询设备型号列表
export function listInfo(query) {
  return request({
    url: '/deviceMode/list',
    method: 'get',
    params: query
  })
}

// 查询设备型号详细
export function getInfo(modelId) {
  return request({
    url: '/deviceMode/' + modelId,
    method: 'get'
  })
}

// 新增设备型号
export function addInfo(data) {
  return request({
    url: '/deviceMode',
    method: 'post',
    data: data
  })
}

// 修改设备型号
export function updateInfo(data) {
  return request({
    url: '/deviceMode',
    method: 'put',
    data: data
  })
}

// 删除设备型号
export function delInfo(modelId) {
  return request({
    url: '/deviceMode/' + modelId,
    method: 'delete'
  })
}

// 厂商下拉框数据
export function getManufacturer(params) {
  return request({
    url: '/manufacturer/facturerInfo',
    params
  })
}

// 厂商下拉框数据
export function getManufacturer1(params) {
  return request({
    url: '/manufacturer/facturerInfoAll',
    params
  })
}
